package com.blog.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 评论表相关的实体类
 *
 * @author wmb
 *
 * @since 2021-2-8
 */
@ApiModel("评论表相关的实体类")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("comment表主键")
    private Integer id;

    @ApiModelProperty("contents表主键,关联字段")
    private Integer cid;

    @ApiModelProperty("评论生成时的GMT unix时间戳")
    private Date createTime;

    @ApiModelProperty("评论作者")
    private String author;

    @ApiModelProperty("评论所属用户id")
    private Integer authorId;

    @ApiModelProperty("评论所属内容作者id")
    private Integer ownerId;

    @ApiModelProperty("评论者邮件")
    private String mail;

    @ApiModelProperty("评论者网址")
    private String url;

    @ApiModelProperty("评论者ip地址")
    private String ip;

    @ApiModelProperty("评论者客户端")
    private String agent;

    @ApiModelProperty("评论内容")
    private String content;

    @ApiModelProperty("评论类型")
    private String type;

    @ApiModelProperty("评论状态")
    private String status;

    @ApiModelProperty("父级评论")
    private Integer parent;


}
